www.gusucode.com > UCMS PHP通用建站系统 v1.3.4PHP源码程序 > UCMS PHP通用建站系统 v1.3.4/ucms_v1.3.4/ucms_v1.3.4/inc/config.php
<?php //需要重新安装程序,请将此文件复制为config.php,访问首页进行安装 if(stripos($_SERVER['REQUEST_URI'],'install')===false) { echo("<meta http-equiv=refresh content='0; url=install/index.php'>"); exit; } define('SystemRoot',dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR); define('IncDir',SystemRoot.'inc'.DIRECTORY_SEPARATOR); define('CacheDir',SystemRoot.'cache'.DIRECTORY_SEPARATOR); define('MysqlEngine','MyISAM');//mysql默认引擎MyISAM,或InnoDB define('version','1.3.4');//版本 define('AdminDir','ucms');//后台目录 define('DbError',1); $site_db='{sitedb}'; require(IncDir.'func.php'); if (!defined('NoDb')) {if(!isset($GLOBALS['db'])) {$GLOBALS['db'] = new db();$GLOBALS['db'] -> connect($site_db);}} _stripslashes();